<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="css/index.css" rel="stylesheet" type="text/css" />
<script src="../../../js/prototype.js" type="text/javascript"></script>
<script src="../../../js/engine.js" type="text/javascript"></script>
<script src="../../../js/public.js" type="text/javascript"></script>
<title>员工信息录入</title>
</head>
<body>
<form id="employeeForm" name="employeeForm" action='employee.do' method="post">
<div class="content-right">
  <div class="content-r-pic">
    <div style="margin:5px auto auto 12px;"><img src="../../../images/employee.gif" width="138" height="17" /></div>
  </div>
  
    <div class="content-text">
      <div class="square-order">
        <div style="border:1px solid #cecece;">
          <table width="100%"  border="0" cellpadding="0" cellspacing="0">
            <tr bgcolor="#FFFFFF">
              <td>&nbsp;</td>
            </tr>
          </table>
          <input type="hidden" name="id"  value="$!obj.id">
          <input type="hidden" name="org.apache.struts.taglib.html.TOKEN"  value="$!{token}">
          <input type="hidden" name="cmd"  value="#if(!$!obj.id)save#end#if($!obj.id)update#end">
          <table width="100%"  border="0" cellpadding="0" cellspacing="0">
            <tr  bgcolor="#FFFFFF">
              <td width="13%" height="30" align="center">员工编号</td>
              <td width="36%"><input name="sn" id="sn" type="text" value="$!obj.sn" /></td>
              <td width="13%" height="30" align="center">员工姓名</td>
              <td width="36%"><input name="userName" id="userName" type="text" value="$!obj.userName" /></td>
            </tr>
            <tr  bgcolor="#FFFFFF">
              <td width="13%" height="30" align="center">员工性别</td>
              <td width="36%"><input name="sex" type="text" class="form_textmenu" id="sex"   onClick="ItcastUtil.choiceDictionary('employeeSex','员工性别',function(result){$('sex').value=result.name;$('sexId').value=result.id;});" value="$!obj.sex.name" readonly />
         <input type="hidden" name="sexId" id="sexId" value="$!obj.sex.id"></td>
              <td align="center">电子邮件</td>
              <td><input name="email" id="email" type="text" value="$!obj.email" /></td>
            </tr>
            <tr  bgcolor="#FFFFFF">
              <td width="22%" align="center">家庭住址</td>
              <td width="29%"><input name="address" id="address" type="text" value="$!obj.address" /></td>
              <td align="center">办公电话</td>
              <td><input name="officeTel" id="officeTel" type="text" value="$!obj.officeTel" /></td>
            </tr>
            <tr  bgcolor="#FFFFFF">
              <td height="30" align="center">联系电话</td>
              <td><input name="mobileTel" id="mobileTel" type="text" value="$!obj.mobileTel" /></td>
              <td width="22%" align="center">所在部门</td>
              <td width="29%"><select name="deptId" id="deptId" style="width:157px">
                #foreach($info in $departmentList)
                    <option value="$!info.id" #if($!obj.dept.id==$!info.id)selected="selected" #end>$!info.name</option>
                #end
              </select></td>
            </tr>
            <tr  bgcolor="#FFFFFF">
              <td height="30" align="center">员工职务</td>
              <td><input name="employeeTypes" type="text" class="form_textmenu" id="employeeTypes"   onclick="ItcastUtil.choiceDictionary('employeeTypes','员工职务',function(result){$('employeeTypes').value=result.name;$('typesId').value=result.id;});" value="$!obj.types.name" readonly="readonly" />
              <input type="hidden" name="typesId" id="typesId" value="$!obj.types.id" /></td>
              <td align="center">帐户状态</td>
              <td>
              <select name="status" id="status" style="width:157px">
                <option value="0" #if($!obj.status==0)selected="selected" #end>未审核</option>
                <option value="1" #if($!obj.status==1)selected="selected" #end>正常</option>
                <option value="-1" #if($!obj.status==-1)selected="selected" #end>锁定</option>
                <option value="-2" #if($!obj.status==-2)selected="selected" #end>回收站</option>
              </select></td>
            </tr>
            <tr  bgcolor="#FFFFFF">
              <td height="120" align="center">备注说明</td>
              <td colspan="3"><textarea name="remark" cols="60" rows="6" id="remark">$!obj.remark</textarea></td>
            </tr>
          </table>
        </div>
        <div class="order-botton">
          <div style="margin:1px auto auto 1px;">
            <table width="100%"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><input type="image" src="../../../images/order_tuo.gif" border="0" /></td>
                <td>&nbsp;</td>
                <td><input type="image" src="../../../images/order_tuo.gif" border="0" onclick="this.form.reset();return false;" /></td>
                <td>&nbsp;</td>
                <td><input type="image" src="../../../images/order_tuo.gif" border="0" onclick="location.href='?cmd=list';return false;" /></td>
              </tr>
            </table>
          </div>
        </div>
      </div>
      
    </div>
    

  <div class="content-bbg"><img src="../../../images/content_bbg.jpg" /></div>
</div>
  </form>
</body>
</html>

